package org.example.admin.service.impl;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.solon.service.impl.ServiceImpl;
import org.apache.ibatis.solon.annotation.Db;
import org.example.admin.entity.Demo;
import org.example.admin.mapper.DemoMapper;
import org.example.admin.service.DemoService;
import org.noear.solon.annotation.Component;
import org.noear.solon.annotation.Inject;
import org.noear.solon.annotation.ProxyComponent;

@ProxyComponent
public class DemoServiceImpl extends ServiceImpl<DemoMapper, Demo> implements DemoService {
   @Db
   DemoMapper demoMapper;
    @Override
    public Demo findById(Long id) {
        return demoMapper.findById(id);
    }
//    @Db
//    BaseMapper<Demo> appBaseMapper;
}
